IWCGJQDropDownSelect.JQDropDownOptions.AttachTo:= jqddatInput;
IWCGJQDropDownSelect.JQDropDownOptions.MinimumInputLength:= 2;
IWCGJQDropDownSelect.OnGetDropDownData:= IWCGJQDropDownSelectGetDropDownData;
IWCGJQDropDownSelect.JQDropDownOptions.Ajax.QueryParams:= '{page_limit: 10}';
IWCGJQDropDownSelect.JQDropDownOptions.Ajax.QuietMillis:= 100;

procedure TIWJQNewCompsFrame.IWCGJQDropDownSelectGetDropDownData(Sender: TObject; const ATerm: string; var AJSon: ISuperObject);
var
  DescField: TField;
  ItemJSon: ISuperObject;
begin
  ADOQuery.Close;
  ADOQuery.SQL.Clear;
  ADOQuery.SQL.Add('select * from products');
  ADOQuery.SQL.Add('where ProductDescription like '+QuotedStr('%'+ATerm+'%'));
  ADOQuery.Open;

  DescField:= ADOQuery.FieldByName('ProductDescription');

  AJSon:= TSuperObject.Create(stArray);
  while not ADOQuery.Eof do
  begin
    ItemJSon:= TSuperObject.Create(DescField.AsString);
    AJSon.AsArray.Add(ItemJSon);
    ADOQuery.Next;
  end;
end;
end;
